package com.cxyzy.demo

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        hideBBtn.setOnClickListener {
            bLayout.visibility = View.GONE
            guideline.setGuidelinePercent(1.0f)
        }
        showBBtn.setOnClickListener {
            bLayout.visibility = View.VISIBLE
            guideline.setGuidelinePercent(0.5f)
        }

    }
}
